/*
 * Copyright 2011 Noctarius (Christoph Engelbert)
 * Part of www.sourceprojects.org 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may 
 * not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 */
package org.sourceprojects.cappadocia;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

class AnnotationInfoImpl implements AnnotationInfo, AnnotatedElement {
	private final Set<AnnotationInfo> annotations = new HashSet<AnnotationInfo>();
	private final String annotationType;

	AnnotationInfoImpl(final String annotationType) {
		this.annotationType = annotationType;
	}

	@Override
	public String getAnnotationType() {
		return annotationType;
	}

	@Override
	public Collection<AnnotationInfo> getAnnotations() {
		return annotations;
	}

	@Override
	public Collection<MethodInfo> getMethods() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void addAnnotation(final AnnotationInfo annotationInfo) {
		annotations.add(annotationInfo);
	}

}
